Crop
Crop out image to create smaller ones.
Node Data | |
|---|---|
Display name | |
Crop | |
Internal name | |
Node_Crop | |
Inheritances | |
| Node_Processor | |
| Node_Crop | |
Inputs | |
Surface | |
surface |
Surface In |
Crop | |
enum |
Aspect Ratio |
vec2 |
Ratio |
padding |
Crop |
enum |
Fit Mode |
vec2 |
Center |
float |
Width |
Outputs | |
surface |
Surface Out |
Attributes | |
| Color Depth | |
This node crops the input image into smaller piece. If you want to crop image into area, you can use the Camera node.
Properties
| Crop | |
| Aspect Ratio | If not set to "none", the aspect ratio of the crop area will be locked to the specified value. |
| Crop | A vec4 value the define crop distance from the left, top, right, and bottom of the image. |
| Fit Mode | For locked aspect ratio, this will determine how the image will be fit into the crop area. |
Related Links
- Base Code: /scripts/node_crop/node_crop.gml